﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ParticeInClass
{
  
    class Teacher
    {
        public string Name { get; set; }
        public int Age { get; set; }
        public  int points = 0;
        public virtual void Eat()     //注意关键字 virtual
        {
            Console.WriteLine("老师吃饭");
        }

        protected internal void Teach()
        {
            Console.WriteLine("老师教课");
        }
    }
}
